home *** CD-ROM | disk | FTP | other *** search
/ Game Programming in C++ - Start to Finish / GameProgrammingS.iso / Peon / PeonSDK-Win32-1.0.0.exe / {app} / PeonMain / include / lua / lualib.h < prev   
Encoding:
C/C++ Source or Header  |  2003-11-25  |  1.1 KB  |  57 lines

  1. /*
  2. ** $Id: lualib.h,v 1.28 2003/03/18 12:24:26 roberto Exp $
  3. ** Lua standard libraries
  4. ** See Copyright Notice in lua.h
  5. */
  6.  
  7.  
  8. #ifndef lualib_h
  9. #define lualib_h
  10.  
  11. #include "lua.h"
  12.  
  13.  
  14. #ifndef LUALIB_API
  15. #define LUALIB_API    LUA_API
  16. #endif
  17.  
  18.  
  19. #define LUA_COLIBNAME    "coroutine"
  20. LUALIB_API int luaopen_base (lua_State *L);
  21.  
  22. #define LUA_TABLIBNAME    "table"
  23. LUALIB_API int luaopen_table (lua_State *L);
  24.  
  25. #define LUA_IOLIBNAME    "io"
  26. #define LUA_OSLIBNAME    "os"
  27. LUALIB_API int luaopen_io (lua_State *L);
  28.  
  29. #define LUA_STRLIBNAME    "string"
  30. LUALIB_API int luaopen_string (lua_State *L);
  31.  
  32. #define LUA_MATHLIBNAME    "math"
  33. LUALIB_API int luaopen_math (lua_State *L);
  34.  
  35. #define LUA_DBLIBNAME    "debug"
  36. LUALIB_API int luaopen_debug (lua_State *L);
  37.  
  38.  
  39. LUALIB_API int luaopen_loadlib (lua_State *L);
  40.  
  41.  
  42. /* to help testing the libraries */
  43. #ifndef lua_assert
  44. #define lua_assert(c)        /* empty */
  45. #endif
  46.  
  47.  
  48. /* compatibility code */
  49. #define lua_baselibopen    luaopen_base
  50. #define lua_tablibopen    luaopen_table
  51. #define lua_iolibopen    luaopen_io
  52. #define lua_strlibopen    luaopen_string
  53. #define lua_mathlibopen    luaopen_math
  54. #define lua_dblibopen    luaopen_debug
  55.  
  56. #endif
  57.